﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<!-- Resource dictionary entries should be defined here. -->

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="Pinceles.xaml"/>
	</ResourceDictionary.MergedDictionaries>
				
	<Style TargetType="{x:Type ListView}">
		<Setter Property="BorderBrush" Value="Black"/>
		<Setter Property="BorderThickness" Value="0.5"/>
		<Setter Property="Template">
			<Setter.Value>
	   		 	<ControlTemplate>
		    		<Border Name="bd" BorderBrush="#22FFFFFF" BorderThickness="1" CornerRadius="4" Background="{StaticResource PincelAzul}">
       	 				<ScrollViewer Margin="{TemplateBinding Padding}">
							<WrapPanel ItemWidth="100" IsItemsHost="True" MinWidth="100" Width="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=ScrollContentPresenter}}">
            				</WrapPanel>
          				</ScrollViewer>
					</Border>
     			</ControlTemplate>
    		</Setter.Value>
  		</Setter>
	</Style>
	
	<Style TargetType='{x:Type ListViewItem}'>
  		<Setter Property='Padding' Value='1'/>
		<Setter Property='Margin' Value='1'/>
		<Setter Property='HorizontalContentAlignment' Value='Center'/>
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
          			<Grid Width="100" Height="100" HorizontalAlignment="Center">
            			<Label Width="100" HorizontalContentAlignment="Center" Content="{Binding Path=Nombre}" Foreground="#FFFFFF"/>  
						<Image Source="{Binding Path=Avatar}" Margin="5,25,5,5"/>
        			</Grid>          				
				</DataTemplate>
			</Setter.Value>
		</Setter>		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListViewItem">
					<Border 
					  Name="Border"
					  Padding="0"
					  SnapsToDevicePixels="true"
					  BorderThickness="1">
						<ContentPresenter />
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsSelected" Value="true">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ItemSeleccionado}"/>
							<Setter TargetName="Border" Property="BorderBrush"
									Value="#66FFFFFF" />
							<Setter TargetName="Border" Property="CornerRadius" Value="5" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>		
	</Style>
	
</ResourceDictionary>